<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="__PUBLIC__/css/inc.css" />
	<jquery/>
	<script type="text/javascript" src='__PUBLIC__/js/extend.js'></script>
	<script type="text/javascript" src='__CONTROL_TPL__/js/js.js'></script>
	<title>栏目列表</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'index'}" class="act">栏目管理</a>
		<a href="{|U:'add'}">添加栏目</a>
		<a href="{|U:'updateCache'}">更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14' level=1>
				<th class="pct5 tsblack tc">cid</th>
				<th class="tsblack pct50">栏目名称</th>
				<th class="tsblack">栏目类型</th>
				<th class="pct30 tsblack tc">操作</th>
			</tr>
			<foreach from="$category" value="$c">
				<tr level="{$c._level}" cid="{$c.cid}" pid="{$c.pid}" onclick="level(this);">
					<td class='tc'><span class="b gray2">{$c.cid}</span></td>
					<td class=''><b class="state bgteal dib tc lh20 w20 h20 white rad50 b a f14 hand mr5">+</b> {$c._name}</td>
					<td class='tc'>
						<if value="$c.cate_type eq 1">
							<span class="orange">封面栏目</span>
						<else/>
							普通栏目
						</if>
					</td>
					<td class='tc'>
						<a href="{|U:'edit?cid='}{$c.cid}" class="btn bgteal white">修改</a>
						<a href="{|U:'del?cid='}{$c.cid}" onclick='return del();' class="dels btn bgred2 white">删除</a>
						<a href="{|U:'add?pid='}{$c.cid}" class="btn bgteal2 white">添加子栏目</a>
					</td>
				</tr>
			</foreach>
		</table>
	</div>
</body>
</html>